var mysql = require('mysql');
var conn=mysql.createConnection({
    host:'localhost',
    user:'root',
    password:'root',
    database:'DuDaInfo'
});
conn.connect(function (err) {
    if (err) {
        console.error('数据库连接失败！' + err.message);
        return;
    }
});
module.exports.conn = conn;